@import './variables.less';//全局less变量文件,需要在用到的组件中重复引入...
@import './transition.less';
@import './mixin.less';

html{
  font-size:calc(100vw/7.2);
}
html, body{
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #ccc;
}
ul, li{
  list-style-type: none;
}
#app-box{
  height: 100%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

// 禁用选择复制
* {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  -khtml-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
  box-sizing: border-box;
}

.clearfix{
  display: inline-block;
  &:after{
    display: block;
    content: "";
    height: 0;
    line-height: 0;
    clear: both;
    visibility: hidden;
  }
}

// 1px-border
@media (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5){
  .border-1px{
    &::after{
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }
}


@media (-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2){
  .border-1px{
    &::after{
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }
}

.timeline .unfinished{
  .vux-timeline-item-tail, .vux-timeline-item-head{
    background-color: rgb(195, 195, 195);
  }
}

// 去除home页面应用Grid的分组横线
.home{
  .weui-grids:before, .weui-grid:after{
    content: '';
    height: 0;
    border: none;
  }
  .weui-cells{
    margin-top: 0;
  }
}

// 重置办件数详情页面group title的margin-top值
.document-detail .group .weui-cells{
  margin-top: 0;
}

.dispatches .form{
  .weui-cell:before{
    border-top: none;
  }
}

// 重置待办任务页面group title的margin-top值和padding值
.task-todos .group .weui-cells{
  margin-top: 0;
}
.task-todos .tasks.group .weui-cell{
  padding: 20px 15px;
  &::before{
    left: 0; // 底部边框全部显示
  }
}

//提交按钮
.submit-btn{
  margin-top: 40px;
  margin-bottom: 40px !important;;
  background-color: #ffd055 !important;
  color: #fff !important;
}